using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace SQLRunner.gui
{
    public interface IScriptsView
    {
        /// <summary>
        /// Used to indicate the view to become visible
        /// </summary>
        void DisplayView();

        /// <summary>
        /// View's controller
        /// </summary>
        ScriptsController Controller { get; set; }

        /// <summary>
        /// Used to indicate that the scriptsModel may have changed
        /// </summary>
        /// <param name="scriptsModel"></param>
        /// <param name="e"></param>
        void Update(ScriptsModel scriptsModel, EventArgs e);

        /// <summary>
        /// Links the scriptsModel to the view
        /// </summary>
        /// <param name="scriptsModel"></param>
        void Subscribe(ScriptsModel scriptsModel);

    }
}
